import { Layout } from "@/utils";
export const formData = () => {
  return [
    {
      layout: Layout.FORM_ITEM_LAYOUT,
      label: "系统单号",
      field: "input",
      col: 8,
      options: {
        initialValue: undefined,
      },
      component: {
        name: "Input",
        props: {
          placeholder: "请输入系统单号",
        },
      },
    },

    {
      layout: Layout.FORM_ITEM_LAYOUT,
      label: "商户单号",
      field: "search",
      col: 8,
      component: {
        name: "Input",
        props: {
          placeholder: "请输入商户单号",
        },
      },
    },

    {
      layout: Layout.FORM_ITEM_LAYOUT,
      label: "订单金额",
      field: "search2",
      col: 8,
      component: {
        name: "Input",
        props: {
          placeholder: "请输入订单金额",
        },
      },
    },
    {
      layout: Layout.FORM_ITEM_LAYOUT,
      label: "筛选方式",
      field: "select",
      col: 8,
      options: {
        initialValue: undefined,
      },
      component: {
        name: "Select",
        props: {
          placeholder: "请选择",
          options: [
            {
              value: "1",
              label: "全部",
            },
          ],
        },
      },
    },
    {
      layout: Layout.FORM_ITEM_LAYOUT,
      label: "创建时间",
      field: "date",
      col: 8,
      component: {
        name: "RangePicker",
        props: {
          valueFormat: "YYYY-MM-DD",
        },
      },
    },
    {
      layout: Layout.FORM_ITEM_LAYOUT,
      label: "状态",
      field: "select",
      col: 8,
      options: {
        initialValue: undefined,
      },
      component: {
        name: "Select",
        props: {
          placeholder: "请选择",
          options: [
            {
              value: "1",
              label: "全部",
            },
          ],
        },
      },
    },
    {
      layout: Layout.FORM_ITEM_LAYOUT,
      label: "search23",
      field: "search23",
      col: 8,
      component: {
        name: "Input",
        props: {
          placeholder: "请输入",
        },
      },
    },
    {
      layout: Layout.FORM_ITEM_LAYOUT,
      label: "search22",
      field: "search22",
      col: 8,
      component: {
        name: "Input",
        props: {
          placeholder: "请输入",
        },
      },
    },
    {
      layout: Layout.FORM_ITEM_LAYOUT,
      label: "search21",
      field: "search21",
      col: 8,
      component: {
        name: "Input",
        props: {
          placeholder: "请输入",
        },
      },
    },
    {
      layout: Layout.FORM_ITEM_LAYOUT,
      label: "search4",
      field: "search4",
      col: 8,
      component: {
        name: "Input",
        props: {
          placeholder: "请输入",
        },
      },
    },
  ];
};

export const columns = () => {
  return [
    {
      title: "平台订单号",
      dataIndex: "a",
      width: "15%",
      ellipsis: true,
    },
    {
      title: "商户订单号",
      dataIndex: "c",
      width: "15%",
      ellipsis: true,
    },
    {
      title: "订单金额",
      dataIndex: "d",
      width: "10%",
      ellipsis: true,
    },
    {
      title: "手续费",
      dataIndex: "e",
      width: "10%",
      ellipsis: true,
    },
    {
      title: "支付设备",
      dataIndex: "f",
      width: "10%",
      ellipsis: true,
    },
    {
      title: "支付方式",
      dataIndex: "g",
      width: "10%",
      ellipsis: true,
    },
    {
      title: "支付状态",
      dataIndex: "g1",
      width: "10%",
      ellipsis: true,
    },
    {
      title: "回调状态",
      dataIndex: "g2",
      width: "10%",
      ellipsis: true,
    },
    {
      title: '操作',
      key: 'action',
      scopedSlots: { customRender: 'action' },
      fixed: 'right',
      width: 200,
    },
  ];
};
